#!/bin/bash


docker exec -i $container_name mysql -uroot -p"$dbrootpwd" < xxx.sql
CREATE USER "trcomm"@"%" IDENTIFIED BY "xydR" PASSWORD EXPIRE NEVER;
GRANT SELECT,CREATE,INSERT,UPDATE,DELETE,TRIGGER,INDEX,EVENT,CREATE VIEW,SHOW VIEW,EXECUTE ON talking_db.* TO "trcomm"@"%";
grant all privileges on zabbix_proxy.* to zabbix@localhost identified by 'zabbix';